﻿import request from '@/utils/request';
// list
export const tuisuxinxiList = (params) => {
    return request({
        url: '/tuisuxinxi/page',
        method: 'post',
        data: params,
    })
};
export const tuisuxinxiDetail = (id) => {
    return request({
        url: '/tuisuxinxi/'+id,
        method: 'get',
    })
};
// add
export const tuisuxinxiSave = (params) => {
    return request({
        url: '/tuisuxinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const tuisuxinxiEdit = (params) => {
    return request({
        url: '/tuisuxinxi',
        method: 'put',
        data: params,
    })
};
// delete
export const tuisuxinxiDelete = (id) => {
    return request({
        url: '/tuisuxinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const tuisuxinxiDeleteList = (tuisuxinxis) => {
    return request({
        url: '/tuisuxinxi/deleteList',
        data:{list:tuisuxinxis},
        method: 'post',
    })
};
// all
export const tuisuxinxiAllList = () => {
    return request({
        url: '/tuisuxinxi',
        method: 'get',
    })
};

